<div class="form-content">
    {{ form('class': 'forms-signup forms-horizontal') }}
    <div class="form-group col-md-12 col-sm-3 col-md-offset-0 {% if form.hasMessagesFor('name') %} has-error {% endif %}">
        <div class="col-md-2">
            <label for="">
                {{ form.label('name')}}
            </label>
        </div>
        <div class="col-md-8">
            {{ form.render('name') }}
            <div class="clearfix">
                <div class="help-block">
                    {{ form.messages('name') }}
                </div>
            </div>
        </div>
    </div>

    <div class="form-group col-md-12 col-sm-3 col-md-offset-0 {% if form.hasMessagesFor('value') %} has-error {% endif %}">
        <div class="col-md-2">
            <label for="">
                {{ form.label('value')}}
            </label>
        </div>
        <div class="col-md-8">
            {{ form.render('value') }}
            <div class="clearfix">
                <div class="help-block">
                    {{ form.messages('value') }}
                </div>
            </div>
        </div>
    </div>

    <div class="form-group col-md-12 col-sm-3 col-md-offset-0 {% if form.hasMessagesFor('resources') %} has-error {% endif %}">
        <div class="col-md-2">
            <label for="">
                Resource
            </label>
        </div>
        <div class="controls col-xs-12 col-sm-8">
            <div class="row">
                {% for resource in resources %}
                    <div class="col-xs-4">
                        <label class="position-relative">
                            <input type="checkbox" class="ace" name="resources[]" value="{{ resource.getId() }}">
                            <span class="lbl">{{ resource.getName() }}</span>
                        </label>
                    </div>
                {% endfor %}
            </div>
            <div class="clearfix">
                <div class="help-block">

                </div>
            </div>
        </div>
    </div>

    <div class="form-group col-md-12 col-sm-3 col-md-offset-0 {% if form.hasMessagesFor('status') %} has-error {% endif %}">
        <div class="col-md-2">
            <label for="">
                {{ form.label('status')}}
            </label>
        </div>
        <div class="col-md-8">
            {{ form.render('status') }}
            <div class="clearfix">
                <div class="help-block">
                    {{ form.messages('status') }}
                </div>
            </div>
        </div>
    </div>
    <div class="form-group col-md-12 col-sm-3 col-md-offset-0">
        <div class="col-md-2">
            <label for="">

            </label>
        </div>
        <div class="col-md-8">
            {{ form.render('submit') }}
        </div>
    </div>
    {{ form.render('csrf', ['value': security.getToken()]) }}
    </form>
</div>